package guavatest;

import com.google.common.primitives.Ints;

import java.util.Arrays;
import java.util.List;

/**
 * @author lzy
 * @version v1.0
 * Create DateTime: 2019/2/27 9:29
 */
public class GuavaDemo {
    public static void main(String[] args) {
        int[] intArray = {1, 2, 3, 4};
        List<Integer> list = Ints.asList(intArray);
        Integer[] integers = (Integer[]) list.toArray();
        System.out.println(Arrays.toString(integers));
        int[] ints = Arrays.stream(integers).mapToInt(Integer::intValue).toArray();
    }
}
